set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/research)

file(GLOB
	TS_INFO_FILES
	"../../research/hls/*.cc"
)
add_executable(ts_info ${TS_INFO_FILES})
target_link_libraries(ts_info
	-lsrsrtmp
	-lpthread
	-ldl
)

############################################################
add_executable(srs_aac_raw_publish "../../research/librtmp/srs_aac_raw_publish.c")
target_link_libraries(srs_aac_raw_publish
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_audio_raw_publish "../../research/librtmp/srs_audio_raw_publish.c")
target_link_libraries(srs_audio_raw_publish
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_bandwidth_check "../../research/librtmp/srs_bandwidth_check.c")
target_link_libraries(srs_bandwidth_check
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_detect_rtmp "../../research/librtmp/srs_detect_rtmp.c")
target_link_libraries(srs_detect_rtmp
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_flv_injecter "../../research/librtmp/srs_flv_injecter.c")
target_link_libraries(srs_flv_injecter
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_flv_parser "../../research/librtmp/srs_flv_parser.c")
target_link_libraries(srs_flv_parser
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_h264_raw_publish "../../research/librtmp/srs_h264_raw_publish.c")
target_link_libraries(srs_h264_raw_publish
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_ingest_flv "../../research/librtmp/srs_ingest_flv.c")
target_link_libraries(srs_ingest_flv
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_ingest_rtmp "../../research/librtmp/srs_ingest_rtmp.c")
target_link_libraries(srs_ingest_rtmp
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_play "../../research/librtmp/srs_play.c")
target_link_libraries(srs_play
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_publish "../../research/librtmp/srs_publish.c")
target_link_libraries(srs_publish
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)

############################################################
add_executable(srs_rtmp_dump "../../research/librtmp/srs_rtmp_dump.c")
target_link_libraries(srs_rtmp_dump
	-lsrsrtmp
	${SRS_LIBS}
	-lst
	-lssl
	-lcrypto
	-lpthread
	-ldl
	-lstdc++
)
